Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipe placeholders #4

Merged
merged 3 commits into from
May 10, 2024
Merged

Pipe placeholders #4

merged 3 commits into from
May 10, 2024

Conversation

myme
Copy link
Owner

@myme myme commented May 10, 2024

markdown: Add support for pipe (|) modifiers

Allows building some more elaborate modifiers like fetching stuff from
JSON etc:

# `some-command`

```
cat <<EOF
[
  {
    "id": "123",
    "value": "foobar"
  }
]
EOF
```

# `usage`

```bash ${some-command | json | .value | multi}
echo "$1"
```

Note: The json and .value modifiers are not implemented yet.

myme added 3 commits May 10, 2024 21:54
Allows building some more elaborate modifiers like fetching stuff from
JSON etc:

~~~markdown
# `some-command`

```
cat <<EOF
[
  {
    "id": "123",
    "value": "foobar"
  }
]
EOF
```

# `usage`

```bash ${some-command | json | .value | multi}
echo "$1"
```
~~~
@myme myme merged commit 2855911 into main May 10, 2024
4 checks passed
@myme myme deleted the pipe-placeholders branch May 10, 2024 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant